package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * 药铺：药材日志
 */
@FieldTypeAnnotation(tableName = "t_l_ck_drug_store_drug", desc = "药铺药材日志", autoSave = true, uploadCk = true)
public class LogDrugStoreDrug extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "药材id")
    private int drugId;

    @FieldTypeAnnotation(desc = "1:手动种植；2:自动种植")
    private int type;

    @FieldTypeAnnotation(desc = "0:失去；1:获得")
    private int get;

    @FieldTypeAnnotation(desc = "数量")
    private int num;

    @FieldTypeAnnotation(desc = "当前数量")
    private int nowNum;

    @FieldTypeAnnotation(desc = "途径:订单id/0 进背包")
    private long way;

    @FieldTypeAnnotation(desc = "成熟时间")
    private Date matureTime;

    public LogDrugStoreDrug(long userId, int drugId, int type, int get, int num, int nowNum, long way, Date matureTime) {
        this.userId = userId;
        this.drugId = drugId;
        this.type = type;
        this.get = get;
        this.num = num;
        this.nowNum = nowNum;
        this.way = way;
        this.matureTime = matureTime;
    }

    public long getUserId() {
        return userId;
    }

}
